package com.t235.gc.order.service;

import com.t235.gc.mapper.GarbageRecyclingOrderMapper;
import com.t235.gc.mapper.GoodsOrderMapper;
import com.t235.gc.mapper.HomeRecyclingOrderMapper;
import com.t235.gc.orderVo.GarbageRecyclingOrderVo;
import com.t235.gc.orderVo.GoodsOrderVo;
import com.t235.gc.orderVo.HomeRecyclingOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    private GarbageRecyclingOrderMapper garbageRecyclingOrderMapper;

    @Autowired
    private HomeRecyclingOrderMapper homeRecyclingOrderMapper;

    @Autowired
    private GoodsOrderMapper goodsOrderMapper;

    public List<GarbageRecyclingOrderVo> findByGarbageRecyclingOrderVo(GarbageRecyclingOrderVo vo){
        return garbageRecyclingOrderMapper.findByGarbageRecyclingOrderVo(vo);
    }

    public List<HomeRecyclingOrderVo> findByHomeRecyclingOrderVo(HomeRecyclingOrderVo vo) {
        return homeRecyclingOrderMapper.findByHomeRecyclingOrderVo(vo);
    }

    public List<GoodsOrderVo> findByGoodsOrderVo(GoodsOrderVo vo) {
        return goodsOrderMapper.findByGoodsOrderVo(vo);
    }
}
